package com.example.springbootstartertest;

import com.cn.zz.service.DemoService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class SpringbootStarterTestApplication {

    public static void main (String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(SpringbootStarterTestApplication.class,args);
        DemoService bean = run.getBean(DemoService.class);
        String name = bean.getName();
        System.out.println("name = " + name);

    }

}
